package com.molichuxing.services.infrastructure.service;


import com.molichuxing.services.infrastructure.dto.request.create.AccidentImageCreateDto;
import com.molichuxing.services.infrastructure.dto.response.AccidentCaseDto;
import com.molichuxing.services.infrastructure.dto.response.AccidentImageDto;
import com.molichuxing.services.property.CarAccidentImageEnum;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆事故 图片 服务
 * </p>
 *
 * @author 
 * @since 2019-08-15
 */
public interface AccidentImageService {

  /**
   * 根据事故id集合获取图片信息
   * @param accidentId
   * @param carAccidentImageEnum
   * @return
   */
  Map<Integer, List<AccidentImageDto>> getCarAccidentImageList(Integer accidentId, List<CarAccidentImageEnum> carAccidentImageEnum);

  /**
   * 新增事故图片
   * @param accidentImageCreateDto
   * @return
   */
  Boolean createAccidentImage(AccidentImageCreateDto accidentImageCreateDto);


  /**
   * 删除事故图片
   * @param accidentId
   * @param type
   * @return
   */
  Boolean deleteAccidentImage( Integer accidentId,Integer type);


  void selectOldData();
}
